package com.cyzy.controller;

import com.cyzy.pojo.Orders;
import com.cyzy.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/product/order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @GetMapping("test")
    public void test(){
        Orders orders = new Orders();
        orders.setOrderNum("1");
        orderService.addOrder(orders);
    }


}
